How Many Vowels

90

How Many Vowels -

using System.Linq;
public class Program 
{
    public static int CountVowels(string str)
      => str.Count(a=>$"aeiouAEIOU".Contains(a));
}

Comments

Submit
0 Comments